<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>025-阻止默认行为.html</title>
</head>
<body>
	<a href="https://www.baidu.com">加油吧</a>
</body>
<script src="js/jquery-1.12.4.js"></script>
<script>
	$(function(){
		$('a').on('click',function(ev){
			// return false;
			ev.preventDefault();
		});
	})
</script>
</html>